import client from "./client";
import * as types from "./types";

export const getPing = async (params: {}) => {
	const res = await client.post<types.GetPing>("/api/router/GetPing", params)
  return res.data
}

export const getFileList = async (params: {
  dir: string;
}) => {
	const res = await client.post<types.GetFileList>("/api/router/GetFileList", params)
  return res.data
}

